mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-10-27 07:41:52 +03:00
ec37b77b6e
Summary: Follow-up to https://github.com/facebook/prepack/pull/2212. Pull Request resolved: https://github.com/facebook/prepack/pull/2234 Differential Revision: D8788834 Pulled By: gaearon fbshipit-source-id: 08937736bed3df0ea13d5e7a3925fb2f58633d5c
17 lines
356 B
JavaScript
17 lines
356 B
JavaScript
// does contain: "barone"
|
|
|
|
var __evaluatePureFunction = this.__evaluatePureFunction || (f => f());
|
|
let absFunc = global.__abstract ? __abstract("function", "(x => x)") : x => x;
|
|
|
|
let x, y;
|
|
__evaluatePureFunction(() => {
|
|
let obj1 = { foo: "bar" };
|
|
Object.freeze(obj1);
|
|
absFunc(obj1);
|
|
x = obj1.foo + "one";
|
|
});
|
|
|
|
inspect = function() {
|
|
return x;
|
|
};
|