aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/sourcemaps.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocha/sourcemaps.js')
-rw-r--r--test/mocha/sourcemaps.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mocha/sourcemaps.js b/test/mocha/sourcemaps.js
index 7f4acb78..a1a8e617 100644
--- a/test/mocha/sourcemaps.js
+++ b/test/mocha/sourcemaps.js
@@ -41,9 +41,11 @@ describe("sourcemaps", function() {
"obj.wat([]);",
].join("\n"), {
sourceMap: true,
+ toplevel: true,
});
if (result.error) throw result.error;
- assert.strictEqual(result.map, '{"version":3,"sources":["0"],"names":["obj","wat"],"mappings":"AAAA,IAAIA,IAAM,GACVA,IAAIC,IAAI"}');
+ assert.strictEqual(result.code, "({}).wat([]);");
+ assert.strictEqual(result.map, '{"version":3,"sources":["0"],"names":["wat"],"mappings":"CAAU,IACNA,IAAI"}');
});
describe("inSourceMap", function() {