js/src/jit-test/tests/proxy/testDirectProxyPreventExtensions3.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 load(libdir + "asserts.js");
     3 // Throw a TypeError if the trap reports an extensible object as non-extensible
     4 assertThrowsInstanceOf(function () {
     5     Object.preventExtensions(new Proxy({}, {
     6         preventExtensions: function () {
     7             return true;
     8         }
     9     }));
    10 }, TypeError);

mercurial