mirror of
https://github.com/tc39/test262.git
synced 2025-11-09 00:09:49 +01:00
Fix and tighten up cross realm %ThrowTypeError% test.
This commit is contained in:
parent
e7ddbfac99
commit
15ab1bd12f
@ -17,8 +17,15 @@ var localArgs = function() {
|
||||
"use strict";
|
||||
return arguments;
|
||||
}();
|
||||
var otherArgs = (new other.Function('return arguments;'))();
|
||||
var otherArgs = (new other.Function('"use strict"; return arguments;'))();
|
||||
var otherArgs2 = (new other.Function('"use strict"; return arguments;'))();
|
||||
var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get;
|
||||
var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get;
|
||||
var otherThrowTypeError2 = Object.getOwnPropertyDescriptor(otherArgs, "callee").get;
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
otherThrowTypeError();
|
||||
});
|
||||
|
||||
assert.notSameValue(localThrowTypeError, otherThrowTypeError);
|
||||
assert.sameValue(otherThrowTypeError, otherThrowTypeError2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user