Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: Added dummy 'Debug' in global object
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak authored and Jianchun Xu committed Dec 3, 2015
1 parent 04446e4 commit b6e38eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ class ScriptOrigin {
resource_name_(resource_name),
resource_line_offset_(resource_line_offset),
resource_column_offset_(resource_column_offset) {}
Handle<Value> ResourceName() const {
Local<Value> ResourceName() const {
return resource_name_;
}
Local<Integer> ResourceLineOffset() const {
Expand All @@ -788,7 +788,7 @@ class ScriptOrigin {
return resource_column_offset_;
}
private:
Handle<Value> resource_name_;
Local<Value> resource_name_;
Local<Integer> resource_line_offset_;
Local<Integer> resource_column_offset_;
};
Expand Down
8 changes: 7 additions & 1 deletion deps/chakrashim/lib/chakra_shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
'use strict';

// CHAKRA-TODO doesn't implement the debugger. So add a dummy 'Debug' on
// global object for now.
Object.defineProperty(this, 'Debug',
{ value: {}, enumerable: false, configurable: false, writable: false });

(function() {
// Save original builtIns
var Object_defineProperty = Object.defineProperty,
Expand Down Expand Up @@ -322,4 +328,4 @@

// this is the keepAlive object that we will put some utilities function on
patchUtils(this);
});
});

0 comments on commit b6e38eb

Please sign in to comment.