1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
Commit graph

34 commits

Author SHA1 Message Date
Charles Lowell
48d6e04e17 renamed js error into something more manageable 2010-06-11 17:11:49 +03:00
Charles Lowell
ca4eff3658 separate Constructors from normal object access 2010-06-09 00:32:31 +03:00
Charles Lowell
d6ef0d97a4 rename External::Wrap to external New, which is the function it was actually calling. 2010-06-08 14:37:28 +03:00
Charles Lowell
2b1c38b792 finalize change of To.ruby() -> To.rb() 2010-06-07 10:59:41 +03:00
Charles Lowell
da2c83e7ce make C::Context::New() mirror the actual native method. 2010-06-06 14:22:02 +03:00
Charles Lowell
6714c0d737 run Context#scope through the standard conversion. It might be a primitive after all :) 2010-06-06 13:58:36 +03:00
Charles Lowell
216ea6264e remove the deprecated open() method on context. 2010-05-27 19:28:50 +03:00
Charles Lowell
fea99b72bd expose global scope as an attribute on context. Add Array#length. kinda useful :) 2010-05-26 13:23:14 +03:00
Charles Lowell
f81cc92fca make the global javascript object available on each context as Context#scope 2010-05-26 13:23:04 +03:00
Charles Lowell
c425c42ad9 don't throw exceptions inside an open context. It ain't good. 2010-05-23 04:26:32 +03:00
Charles Lowell
5b2c88002c move callbacks into ruby code. make sure handle scopes are everywhere. raise exception when context needs to be open rather than segfault in certain cases. 2010-05-20 12:08:17 +03:00
Charles Lowell
1f9a375571 make all native classes have a private new 2010-05-20 12:08:17 +03:00
Charles Lowell
7cf117adf3 move the native module down to the bottom 2010-05-20 12:08:17 +03:00
Charles Lowell
0e5173a32f Don't enter a context if it is already entered. 2010-05-20 12:08:17 +03:00
Charles Lowell
5737292a86 move eval() and error handling into ruby 2010-05-20 12:08:16 +03:00
Charles Lowell
3762909be4 change Context::GetCurrent() to GetEntered(), since that's what's meant most of the time anyway. Give objects a cleaner references to their wrapping context. 2010-05-20 12:08:16 +03:00
Charles Lowell
6b686ffb75 add javascript_stacktrace to the JavascriptError to view the full javascript stack. 2010-03-01 00:25:02 -06:00
Charles Lowell
0dbdd0c529 Add the source name and line number to errors. 2010-02-26 21:46:02 -06:00
Charles Lowell
d4fb87dd94 make default error messages better 2010-02-08 11:23:13 -06:00
Charles Lowell
a20279e897 Add methods to get detailed source and line data from error messages 2010-02-08 10:53:20 -06:00
Charles Lowell
f3811a48c2 Dynamic handling of ruby properties. Invoking ruby setters from javascript. Removed a bunch of segfaulting. Now objects have references to the context that created them. 2010-01-18 00:25:40 +02:00
Charles Lowell
42553f7a6a open context before evaluating. Otherwise Exceptions cause a segfault 2010-01-17 15:57:05 +02:00
Charles Lowell
56c5558be7 native C objects now have a reference to the context that created them. Add identity/equality check for C::Context 2010-01-14 00:51:46 +02:00
Charles Lowell
fd6f42879c Add utility methods to do quick and dirty eval 2010-01-13 17:37:51 +02:00
Charles Lowell
6adef0bfb6 Ruby objects embedded into v8 are passed back to ruby code as themselves. Use any ruby object as the scope of an eval. 2010-01-13 17:15:53 +02:00
Charles Lowell
d4fcee3c74 start allowing using ruby objects as scopes. 2010-01-12 23:51:49 +02:00
Charles Lowell
f35a43763e Load javascript from IO objets and by file name 2010-01-10 21:09:11 +02:00
Charles Lowell
9daf0f7ee7 Add runaway script error for API compatibility. 2010-01-10 20:56:50 +02:00
Charles Lowell
36628a1792 expose Get() method on native message object. Re-raise javascript exceptions in ruby. 2010-01-09 18:55:37 +02:00
Charles Lowell
47103149c9 move eval() implementation into C. make global stateless converters 2009-12-20 19:31:02 +02:00
Charles Lowell
a0af37906c start building out ruby interface 2009-12-18 09:48:06 +02:00
Charles Lowell
12c5723411 comment out ref counting debug output 2009-12-16 14:03:57 +01:00
Charles Lowell
7912eec8cd get the ruby racer running on the shared specs (which fail horribly) 2009-12-16 07:40:19 +01:00
Charles Lowell
2df1f3f33b 'gemify' the source 2009-12-15 07:35:55 +02:00