summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/asm.js
blob: f584ea20edaf8b1d68c8aaf27cca05867d1e267c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
load(libdir + 'bytecode-cache.js');

var test = (function () {
  function f() {
    var x = function inner() {
	"use asm";
	function g() {}
	return g;
    };
  };
  return f.toSource();
})();

try {
  evalWithCache(test, {});
} catch (x) {
  assertEq(x.message.includes("Asm.js is not supported by XDR"), true);
}