Debian Codegraph @

js/src/jit-test/tests/modules/export-ns-from.js

raw
1 // |jit-test| module
2
3 import { ns } from "export-ns.js";
4
5 load(libdir + 'asserts.js');
6
7 assertEq(isProxy(ns), true);
8 assertEq(ns.a, 1);
9 assertThrowsInstanceOf(function() { eval("delete ns"); }, SyntaxError);
10 assertThrowsInstanceOf(function() { ns = null; }, TypeError);