This repository has been archived by the owner on Aug 18, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
819db19
commit 3924b2e
Showing
5 changed files
with
117 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
module Johnson #:nodoc: | ||
module SpiderMonkey #:nodoc: | ||
class Debugger # native | ||
# Enum constants from jsprvtd.h | ||
JSTRAP_ERROR = 0 | ||
JSTRAP_CONTINUE = 1 | ||
JSTRAP_RETURN = 2 | ||
JSTRAP_THROW = 3 | ||
JSTRAP_LIMIT = 4 | ||
|
||
attr_accessor :logger | ||
def initialize(logger) | ||
@logger = logger | ||
end | ||
|
||
def interrupt_handler(context) | ||
logger.debug("interrupt_handler") | ||
end | ||
|
||
def new_script_hook(context) | ||
logger.debug("new_script_hook") | ||
end | ||
|
||
def destroy_script_hook(context) | ||
logger.debug("destroy_script_hook") | ||
end | ||
|
||
def debugger_handler(context) | ||
logger.debug("debugger_handler") | ||
end | ||
|
||
def source_handler | ||
logger.debug("source_handler") | ||
end | ||
|
||
def execute_hook(context) | ||
logger.debug("execute_hook") | ||
end | ||
|
||
def call_hook(context) | ||
logger.debug("call_hook") | ||
end | ||
|
||
def object_hook | ||
logger.debug("object_hook") | ||
end | ||
|
||
def throw_hook(context) | ||
logger.debug("throw_hook") | ||
end | ||
|
||
def debug_error_hook(context) | ||
logger.debug("debug_error_hook") | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters