Lines Matching refs:eval
15 let undefined = try! runtime.eval("undefined") in spec()
23 let null = try! runtime.eval("null") in spec()
30 let boolTrue = try! runtime.eval("true") in spec()
31 let boolFalse = try! runtime.eval("false") in spec()
41 let number = try! runtime.eval("1.23") in spec()
49 let string = try! runtime.eval("'foobar'") in spec()
56 let array = try! runtime.eval("(['foo', 'bar'])") in spec()
63 let dict1 = try! runtime.eval("({ 'foo': 123 })") in spec()
64 let dict2 = try! runtime.eval("({ 'foo': 'bar' })") in spec()
74 let function = try! runtime.eval("(function() {})") in spec()
81 let symbol = try! runtime.eval("Symbol('foo')") in spec()
87 expect({ try runtime.eval("foo") }).to(throwError { error in in spec()