File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3
3
const context = require ( './src/context' )
4
4
const modifiers = require ( './src/modifiers' )
5
5
const compiler = require ( './src/compiler' )
6
+ const rawCompiler = require ( './src/rawCompiler' )
6
7
7
8
module . exports = {
8
9
compileExpression : compiler . compileExpression ,
9
10
compileCode : compiler . compileCode ,
11
+ compileRawExpression : rawCompiler . compileExpression ,
12
+ compileRawCode : rawCompiler . compileCode ,
10
13
expose : context . expose ,
11
14
hide : context . hide ,
12
15
hideAll : context . hideAll ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function has (target, key) {
42
42
43
43
function toSandbox ( obj ) {
44
44
if ( typeof obj !== 'object' ) {
45
- throw new TypeError ( 'first argument must be an object' )
45
+ throw new TypeError ( `First argument must be an object, instead it is a ${ typeof obj } .` )
46
46
}
47
47
let sandbox = proxies . get ( obj )
48
48
if ( ! sandbox ) {
You can’t perform that action at this time.
0 commit comments