restructure test directory
This commit is contained in:
8
test/fixtures/syntax/source-maps/class/actual.js
vendored
Normal file
8
test/fixtures/syntax/source-maps/class/actual.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
get bar() {
|
||||
throw new Error("wow");
|
||||
}
|
||||
}
|
||||
|
||||
var test = new Test;
|
||||
test.bar;
|
||||
16
test/fixtures/syntax/source-maps/class/expected.js
vendored
Normal file
16
test/fixtures/syntax/source-maps/class/expected.js
vendored
Normal 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;
|
||||
10
test/fixtures/syntax/source-maps/class/source-mappings.json
vendored
Normal file
10
test/fixtures/syntax/source-maps/class/source-mappings.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 3,
|
||||
"column": 11
|
||||
},
|
||||
"generated": {
|
||||
"line": 7,
|
||||
"column": 15
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user