add more reliable source-map tests

This commit is contained in:
Sebastian McKenzie
2014-10-10 09:15:24 +11:00
parent a0c4efb152
commit d511fc8094
12 changed files with 90 additions and 36 deletions

View File

@@ -0,0 +1,8 @@
class Test {
get bar() {
throw new Error("wow");
}
}
var test = new Test;
test.bar;

View File

@@ -0,0 +1,16 @@
var Test = function() {
function Test() {}
Object.defineProperties(Test.prototype, {
bar: {
get: function() {
throw new Error("wow");
}
}
});
return Test;
}();
var test = new Test;
test.bar;

View File

@@ -0,0 +1,10 @@
[{
"original": {
"line": 3,
"column": 11
},
"generated": {
"line": 7,
"column": 15
}
}]