therubyracer 0.8.0 → 0.8.1.pre1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of therubyracer might be problematic. Click here for more details.

@@ -1,11 +0,0 @@
1
- //needed to get around
2
- (function(noop){
3
- window = {
4
- setInterval: noop,
5
- clearInterval: noop,
6
- setTimeout: function(callback, delay) {
7
- callback()
8
- },
9
- clearTimeout: noop
10
- }
11
- })(function() {})
@@ -1,22 +0,0 @@
1
- require 'v8'
2
- require 'v8/jasmine/context'
3
- module V8
4
- module Jasmine
5
- FILENAME = File.join(File.dirname(__FILE__), "jasmine",Dir.new(File.join(File.dirname(__FILE__), "jasmine")).find {|f| f =~ /(\d+.\d+\.\d+)\.js$/})
6
- VERSION = $1
7
- SOURCE = File.read(FILENAME)
8
-
9
- class << self
10
- def included(mod)
11
- raise ScriptError, "#{self} cannot be included. Use cxt.extend(V8::Jasmine)"
12
- end
13
-
14
- def extended(cxt)
15
- raise ScriptError, "#{self} can only extend a V8::Context" unless cxt.kind_of?(V8::Context)
16
- cxt.load(File.join(File.dirname(__FILE__), "jasmine", "window.js"))
17
- cxt.load(FILENAME)
18
- end
19
- end
20
- end
21
- end
22
-
@@ -1,18 +0,0 @@
1
- Short list of types that a receiver should handle:
2
-
3
- type expected method
4
- -------------------------------
5
- <null> pushNull
6
- boolean pushBool
7
- int64 pushInt (overloaded on 64-bit int)
8
- double pushDouble
9
- const std::string& pushString
10
- ??? pushUndefined
11
-
12
- int32 pushInt (overloaded on 32-bit int)
13
-
14
- for lack of any better ideas have these functions return true on
15
- success and false on error
16
-
17
- --
18
- should add more later.