mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 20:07:36 +00:00
Objective-J: Adopt general runtime fixes from the npm runtime
Executable.setCode failed when the compiler produced no code after a compile error. This adopts that fix and the other general changes from the runtime published to npm as @objj/runtime, without its Node-specific changes. - CFDictionary.js: Add toJSObject, which returns the contents as a plain object - Executable.js: Return early from setCode when no code was produced - CPLog.js: Return early from CPLogPrint when CPLogDisable is set - Bootstrap.js: Accept SourceMapIncludeSource in OBJJ_COMPILER_FLAGS
This commit is contained in:
1 parent
66e4d3fef6
commit
fc960c62e3
4 files changed
+26
No files matched your search
@@ -219,6 +219,8 @@ Executable.prototype.setCode = function(code, sourceMap)
|
||||
{
|
||||
this._code = code;
|
||||
|
||||
if (code == null) return;
|
||||
|
||||
var parameters = this.functionParameters().join(",");
|
||||
var sourceMapBase64;
|
||||
|
||||
|
||||
Reference in new issue
Block a user