Fizerator / delphi-javascript

Automatically exported from code.google.com/p/delphi-javascript
0 stars 0 forks source link

not thread-safe #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
please update js32.dll and js64.dll to thread-safe build!

Original issue reported on code.google.com by dollee2...@gmail.com on 18 Dec 2013 at 9:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
They are by default. 

“Support for JS_THREADSAFE was recently removed, and threadsafe builds are 
now enabled by default.”
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation#Buildi
ng_your_application

Plus you could always compile them by yourself.

Information how to build SpiderMonkey JavaScript DLL for Windows based system:
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation

1)  First download and install “MozillaBuild” package:
https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Wind
ows_Prerequisites#mozillabuild

2)  Get latest source code:
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Getting_SpiderMonkey_sourc
e_code

Alternative direct link: 
http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz (Version 1.8.5)

3)  Follow instruction for build JavaScript DLL:
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation

Visual Studio 2010 required.

Original comment by andre...@diatomenterprises.com on 19 Dec 2013 at 10:04

Attachments:

GoogleCodeExporter commented 8 years ago
No plans for adding threadsafe support this will require additional dll builds 
(nspr) and changes to api interface

Original comment by n.ame...@gmail.com on 19 Dec 2013 at 11:04

GoogleCodeExporter commented 8 years ago
thank you for your replay!!! and sorry my english!

JS_THREADSAFE is default

but windows need nspr!
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation
When building on non-POSIX platforms, such as Windows, or when building a 
version older than 28, you'll additionally needNSPR.

—————————————————————————

i tried download and build 
http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz (Version 1.8.5)
using lastest mozilla-build and msvc 10 (32bit / 64bit) with 
"—enable-threadsafe” option (or not)

but a/v arrived on
constructor TJSEngine.Create(MaxMemory: Cardinal);
…
  fglobal := JS_NewCompartmentAndGlobalObject(fcx, @global_class, nil);
…

how can i?...

2013. 12. 19., 오후 7:01, delphi-javascript@googlecode.com 작성:

Original comment by dollee2...@gmail.com on 24 Dec 2013 at 8:02