@@ -438,7 +438,7 @@ catch_ie8_1: {
|
||||
}
|
||||
expect: {
|
||||
try {} catch (a) {}
|
||||
console.log(function a() {
|
||||
console.log(function() {
|
||||
}());
|
||||
}
|
||||
expect_stdout: "undefined"
|
||||
@@ -1065,3 +1065,22 @@ issue_4229: {
|
||||
}
|
||||
expect_stdout: true
|
||||
}
|
||||
|
||||
issue_4231: {
|
||||
options = {
|
||||
ie8: true,
|
||||
side_effects: true,
|
||||
}
|
||||
input: {
|
||||
typeof a == 0;
|
||||
console.log(typeof function a() {
|
||||
const a = 0;
|
||||
});
|
||||
}
|
||||
expect: {
|
||||
console.log(typeof function a() {
|
||||
const a = 0;
|
||||
});
|
||||
}
|
||||
expect_stdout: "function"
|
||||
}
|
||||
|
||||
@@ -871,3 +871,25 @@ issue_4229: {
|
||||
expect_stdout: "PASS"
|
||||
node_version: ">=4"
|
||||
}
|
||||
|
||||
issue_4231: {
|
||||
options = {
|
||||
ie8: true,
|
||||
side_effects: true,
|
||||
}
|
||||
input: {
|
||||
"use strict";
|
||||
typeof a == 0;
|
||||
console.log(typeof function a() {
|
||||
let a;
|
||||
});
|
||||
}
|
||||
expect: {
|
||||
"use strict";
|
||||
console.log(typeof function a() {
|
||||
let a;
|
||||
});
|
||||
}
|
||||
expect_stdout: "function"
|
||||
node_version: ">=4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user