mirror of
https://github.com/tc39/test262.git
synced 2025-07-04 12:44:40 +02:00
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);
|
||||
} catch (e) {
|
||||
if (!(e instanceof TypeError)) throw e;
|
||||
if (!(e instanceof TypeError)) {
|
||||
$ERROR("Expected TypeError, got " + e);
|
||||
}
|
||||
result = true;
|
||||
} finally {
|
||||
delete this.prop;
|
||||
|
Loading…
x
Reference in New Issue
Block a user