porffor 0.60.14 → 0.60.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/builtins/object.ts +15 -16
- package/compiler/builtins_precompiled.js +424 -424
- package/foo.js +26 -7
- package/package.json +1 -1
- package/runtime/index.js +1 -1
package/foo.js
CHANGED
@@ -1,7 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
const foo = {
|
2
|
+
get x() {
|
3
|
+
console.log('get x');
|
4
|
+
return 42;
|
5
|
+
}
|
6
|
+
};
|
7
|
+
|
8
|
+
const bar = { ...foo };
|
9
|
+
console.log(bar);
|
10
|
+
|
11
|
+
// const foo = {};
|
12
|
+
// Object.defineProperty(foo, 'wow', {
|
13
|
+
// value: 2,
|
14
|
+
// writable: false,
|
15
|
+
// enumerable: true,
|
16
|
+
// configurable: true,
|
17
|
+
// });
|
18
|
+
|
19
|
+
// const bar = {
|
20
|
+
// set wow(v) {
|
21
|
+
// console.log('set wow', v);
|
22
|
+
// },
|
23
|
+
// ...foo,
|
24
|
+
// };
|
25
|
+
|
26
|
+
// console.log(bar);
|
package/package.json
CHANGED