Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "esper.js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Esper javascript interperter.", | ||
@@ -23,3 +23,3 @@ "main": "src/index.js", | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/codecombat/esper-staging.git" | ||
"url": "git+ssh://git@github.com/codecombat/esper.js.git" | ||
}, | ||
@@ -36,5 +36,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/codecombat/esper-staging/issues" | ||
"url": "https://github.com/codecombat/esper.js/issues" | ||
}, | ||
"homepage": "https://github.com/codecombat/esper-staging#readme", | ||
"homepage": "https://github.com/codecombat/esper.js#readme", | ||
"devDependencies": { | ||
@@ -41,0 +41,0 @@ "babel-core": "^6.4.0", |
@@ -97,3 +97,3 @@ # Esper.js | ||
[The MIT License](License) | ||
[The MIT License](LICENSE.txt) | ||
@@ -100,0 +100,0 @@ |
@@ -9,5 +9,4 @@ 'use strict'; | ||
class EsperObject extends EasyObjectValue { | ||
static *dump$cew(thiz, args) { | ||
console.log('DUMP', args); | ||
console.log('Esper#dump:', args); | ||
if ( typeof window !== 'undefined' ) window.dumped = args[0]; | ||
@@ -24,5 +23,14 @@ return Value.undef; | ||
static *stack$cew(thiz, args, scope, extra) { | ||
console.log(extra.evaluator); | ||
return Value.fromNative(extra.evaluator.buildStacktrace().join('\n')); | ||
} | ||
static *globals$cew(thiz, args, scope, extra) { | ||
return scope.global.object; | ||
} | ||
static *scope$cew(thiz, args, scope, extra) { | ||
return scope.object; | ||
} | ||
} | ||
@@ -29,0 +37,0 @@ |
@@ -30,4 +30,14 @@ 'use strict'; | ||
/** | ||
* @param {String} name | ||
* @param {Realm} realm | ||
* @returns {CompletionRecord} Indexing empty values is a type error. | ||
*/ | ||
*get(name, realm) { | ||
let err = 'Cannot read property \'' + name + '\' of ' + this.specTypeName; | ||
return CompletionRecord.makeTypeError(realm, err); | ||
} | ||
} | ||
module.exports = EmptyValue; |
@@ -133,3 +133,7 @@ 'use strict'; | ||
let result = invoke(this.native, thiz ? thiz.toNative() : undefined, realArgs); | ||
return this.makeLink(result, s.realm); | ||
let val = this.makeLink(result, s.realm); | ||
if ( typeof s.realm.options.linkValueCallReturnValueWrapper === 'function' ) { | ||
val = s.realm.options.linkValueCallReturnValueWrapper(val); | ||
} | ||
return val; | ||
} catch ( e ) { | ||
@@ -136,0 +140,0 @@ let result = this.makeLink(e, s.realm); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
750795
20658
1
1