|
|
@@ -1,6 +1,3 @@
|
|
1
|
|
-const global_obj = {}
|
|
2
|
|
-const function_defs = {}
|
|
3
|
|
-const warnings = {}
|
|
4
|
1
|
const builtins = {
|
|
5
|
2
|
concat: function () {
|
|
6
|
3
|
let str = ""
|
|
|
@@ -22,10 +19,6 @@ const my_handler = {
|
|
22
|
19
|
console.error("Undefined function call! No such function: ", prop)
|
|
23
|
20
|
}
|
|
24
|
21
|
},
|
|
25
|
|
- set: function (target, prop, data) {
|
|
26
|
|
- if (prop === 'w') data.map((w) => warnings.w = true)
|
|
27
|
|
- else console.error("Attempting to set unknown property on interpreter! How did you do that?")
|
|
28
|
|
- }
|
|
29
|
22
|
}
|
|
30
|
23
|
|
|
31
|
24
|
const proxy_obj = new Proxy({}, my_handler)
|