UNPKG
nisp
Version:
latest (0.13.8)
0.13.8
0.13.7
0.13.6
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.14
0.9.13
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.3.2
0.3.1
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.3
0.0.2
0.0.1
A language that for easily build cross-language language
github.com/ysmood/nisp
ysmood/nisp
nisp
/
lib
/
def.js
11 lines
(10 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
exports
.
__esModule
=
true
;
var
core_1 =
require
(
"../core"
);
function
default_1
(
name, val
) {
// protect sandbox
if
(name ===
'__proto__'
) core_1.
error
(
this
,
'set __proto__ is not allowed'
);
return
this
.
sandbox
[name] = val; }
exports
[
"default"
] = default_1;