diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js index b256601791..f356ff4383 100644 --- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js +++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js @@ -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);