mirror of https://github.com/tc39/test262.git
use $ERROR instead of throwing in 15.2.3.7-2-18.js
This commit is contained in:
parent
649d0d2c9a
commit
f7322cca7a
|
@ -24,7 +24,9 @@ try {
|
||||||
|
|
||||||
Object.defineProperties(obj, this);
|
Object.defineProperties(obj, this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!(e instanceof TypeError)) throw e;
|
if (!(e instanceof TypeError)) {
|
||||||
|
$ERROR("Expected TypeError, got " + e);
|
||||||
|
}
|
||||||
result = true;
|
result = true;
|
||||||
} finally {
|
} finally {
|
||||||
delete this.prop;
|
delete this.prop;
|
||||||
|
|
Loading…
Reference in New Issue