The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / src / node_script.cc @ 6f92da2d

History | View | Annotate | Download (14.3 KB)

# Date Author Comment
d4cc30f1 08/03/2013 04:23 PM Ben Noordhuis

src: use PersistentToLocal() in a few more places

Update a few more `Local<T>::New(isolate, persistent)` call sites to
`PersistentToLocal(isolate, persistent)` - the latter has a fast path
for non-weak persistent references.

78d90945 08/02/2013 05:16 PM Ben Noordhuis

src: remove non-isolate PersistentToLocal()

There is no need for it and it's a tiny bit slower than the version of
PersistentToLocal() that takes a v8::Isolate* as its first argument.

8e29ce9f 07/31/2013 02:12 PM Fedor Indutny

src: lint c++ code

2bedf6ef 07/19/2013 04:56 PM Ben Noordhuis

src: fix persistent handle lifecycle issue

Commit 636ca7c adds an optimization that casts strong Persistent<T>
handles directly to Local<T> handles to avoid the overhead of creating
new HandleScope-rooted Local<T> handles all the time.

One gotcha that I missed is that it's no longer legal to reference the...

636ca7c6 07/07/2013 08:24 AM Ben Noordhuis

src: cast strong persistent handles to locals

Avoids the overhead of creating a new Local every time we unwrap a
Persistent handle.

110a9cd8 07/06/2013 11:44 AM Ben Noordhuis

lib, src: upgrade after v8 api change

This is a big commit that touches just about every file in the src/
directory. The V8 API has changed in significant ways. The most
important changes are:

  • Binding functions take a const v8::FunctionCallbackInfo<T>& argument...
c16963b9 06/26/2013 01:54 PM Miroslav Bajtos

src: break on uncaught exception

Most TryCatch blocks have SetVerbose flag on, this tells V8 to report
uncaught exceptions to debugger.

FatalException handler is called from V8 Message listener instead from
the place where TryCatch was used. Otherwise uncaught exceptions are...

b9165252 06/17/2013 05:32 PM Ben Noordhuis

src: clean up `using` directives

Remove the unused ones and alphabetically sort the ones that remain.

f58eb8f5 05/22/2013 07:09 PM Trevor Norris

src: remove unused comment

Now that Context::New(Isolate*) returns Local, the removed comment is
no longer applicable that there is a Persistent which will need to be
disposed.

2868bf94 05/22/2013 05:12 PM Trevor Norris

src: upgrade to new v8 api

Small change that Context::New requires an isolate and returns Local
instead of Persistent.

c0818093 04/29/2013 05:38 PM Andrew Paprocki

vm: add support for timeout argument

Add a watchdog class which executes a timer in a separate event loop in
a separate thread that will terminate v8 execution if it expires.

Add timeout argument to functions in vm module which use the watchdog
if a non-zero timeout is specified.

0a4ebc3d 04/19/2013 09:24 AM Trevor Norris

src: replace Holder() with This()

Switch to always use args.This() to retrieve object instance.

f65e14ed 03/19/2013 08:11 PM Trevor Norris

src: pass Isolate to all applicable api

Update the api to pass node_isolate to all supported methods.

Much thanks to Ben Noordhuis and his work in 51f6e6a.

0bba5902 03/19/2013 08:11 PM Trevor Norris

bindings: update api

All compile time warnings about using deprecated APIs have been
suppressed by updating node's API. Though there are still many function
calls that can accept Isolate, and still need to be updated.

node_isolate had to be added as an extern variable in node.h and...

51f6e6a9 02/25/2013 05:45 PM Ben Noordhuis

src, test: downgrade to v8 3.14 api

01c3d0aa 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Local<>::New

b3cf3f35 07/30/2012 11:21 AM isaacs

Report errors properly from --eval and stdin

9f9c333c 05/01/2012 02:59 PM Fedor Indutny

vm: accept only object as arg of .createContext()

Converting strings and others to objects is very slow and essentially
wrong.

70635753 04/27/2012 01:32 PM Marcel Laverdet

Cleanup vm module memory leakage

There are some paths here that led to dangling contexts. By being
smarter with handle management we can get rid of all the cleanup code
and fix those issues.

ff4a9d38 03/09/2012 06:14 PM Ben Noordhuis

core: use proper #include directives

b92a9195 02/23/2012 07:11 AM Ben Noordhuis

Remove unused variables.

74a8215a 02/06/2012 09:44 AM Ben Noordhuis

Revert support for isolates.

It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh...

a5f74b4d 01/09/2012 08:19 PM Fedor Indutny

added isolates support

cdcb1118 11/09/2011 10:34 AM Ben Noordhuis

Remove stray NODE_MODULE() semi-colons.

9d27faa2 10/19/2011 02:01 PM Ryan Dahl

Revert "Fix #1801 vm: Use 'sandbox' as global_prototype"

Accidentally committed. Revert until review.

This reverts commit 200df8641b43902adc73cce6b89d3e84a91dd3e6.

200df864 10/18/2011 08:56 PM elliottcable

Fix #1801 vm: Use 'sandbox' as global_prototype

Squashed commit:

(- re tests) Cleaning up the `Script` test suite.

For whatever reason, there were several duplicate test files related to `Script`
and the `'vm'` module. I removed these, and fixed a few other small issues....

0dc844de 10/14/2011 11:01 AM Ben Noordhuis

node_script: remove unused variable

b942c633 09/10/2011 08:44 PM Fedor Indutny

Remove obsolete 'using v8::Null'

Fixes #1680.

8c2c7bb8 09/10/2011 01:51 PM Fedor Indutny

vm context with accessors

fixes #1673

26834b05 09/08/2011 04:30 PM Ryan Dahl

Revert "vm context with accessors"

This reverts commit 4527de8cba3bf5f107fcefcf43dbdaa308881ba4.

Causes segfault in test/message/undefined_reference_in_new_context.js

4527de8c 09/08/2011 02:59 PM Fedor Indutny

vm context with accessors

true copy of sandbox properties

catch sealed errors, pass global's prototype to CloneObject

Fixes #1673

c05936ca 08/16/2011 08:50 AM Antranig Basman

vm: fix incorrect dispatch of vm.runInContext for argument "filename"

Adds test case and documentation for vm.runInContext and vm.createContext.

Fixes #1140.

f0872060 07/05/2011 05:39 PM Ben Noordhuis

Verify that the argument passed to vm.runInContext() is a context object.

Fixes #558.

598792ba 04/13/2011 09:11 PM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
src/platform_sunos.cc
test/simple/test-os.js

81cbd42c 04/12/2011 06:51 PM Jakub Lekstan

Fixes the circular reference in vm modules.

Fixes the circular reference problem. Closes GH-822.

75db1995 03/30/2011 01:06 PM Ryan Dahl

Don't conflict with V8's Script class

Closes GH-203.

55048cdf 03/14/2011 08:37 PM Ryan Dahl

Update copyright headers

1f50d711 02/24/2011 06:46 PM Ryan Dahl

Fix memleak in vm.runInNewContext

Closes GH-704.

1345103c 01/02/2011 04:13 AM Ryan Dahl

Fix typos

1c7cd4aa 01/01/2011 07:38 PM Ryan Dahl

Make syntax error display optional

Fixes GH-543

40f29dd4 01/01/2011 04:41 PM Ryan Dahl

Lint node_script.cc

b57c1f51 11/23/2010 09:46 PM Ryan Dahl

Saner, yet still ugly, fix to displaying syntax errors

f123a1ab 11/22/2010 08:55 PM Ryan Dahl

hack to display syntax errors. FIXME

fe74283e 10/09/2010 07:04 PM Ryan Dahl

Fix a few compiler warnings...

55c65cc2 09/29/2010 07:02 PM Ben Noordhuis

Safe constructor for ObjectWrapped classes

New() methods should be invoked as constructors, not regular functions.
Corner cases like Script::New() may cause a SIGSEGV when the GC is run.

More details: http://groups.google.com/group/nodejs/browse_thread/thread/a7e5db68d4cd6356

71651bf8 09/08/2010 01:40 PM Herbert Vojčík

Make test-global work with NODE_MODULE_CONTEXTS.

31b59400 08/04/2010 01:20 PM Ryan Dahl

Allow null context in Script

870aa3d9 07/14/2010 01:55 PM Paul Querna

Move evals to extension module.

8c853404 06/30/2010 02:59 AM Blake Mizerany

fix whitespace errors

23172c5d 06/28/2010 10:37 PM Ryan Dahl

Lint node_script.cc

242161be 06/28/2010 06:16 PM Ruben Rodriguez

Added new API to Script, and implemented it in the REPL

f1a4f178 06/19/2010 10:31 PM Ryan Dahl

script.runIn*Context not throwing errors properly.

78be1e49 05/19/2010 06:02 PM isaacs

Remove the ReportException from the Script class

This is so that syntax errors can be handled discretely in places like the
repl, where SyntaxErrors are expected and normal.

c2a06725 04/18/2010 03:01 PM Herbert Vojcik

Script class with eval-function-family in binding('evals') plus tests.