Граф коммитов

235 Коммитов

Автор SHA1 Сообщение Дата
Yulong Wang 8f6b8b2efb [ci skip] Update Napa.js to version 0.2.0 (#182) 2018-01-05 16:10:20 -08:00
Yulong Wang f152547def Add an example that uses napa.sync.Lock (#179)
* Add example for napa/sync/Lock

* Update link to sync.md

* Update example and rename to 'synchronized-loading'

* Update README and API docs: add synchronized loading example

* Resolve comments

* fix grammer
2018-01-05 15:19:54 -08:00
Allen (Yongshuang) Wang 0f699c541b fix bug when transporting 'null' (#181) 2018-01-05 15:15:27 -08:00
Yulong Wang ab54a359fb Remove trailing semi-colon in macro definitions (#127)
* Remove ';' in macro definitions

* Update macro NAPA_DECLARE_PERSISTENT_CONSTRUCTOR to function-call style

* Fix build break in lock-wrap.cpp
2018-01-05 13:10:57 -08:00
Yulong Wang bf84f69cc7 Fix anchor name in sync.md (#177) 2018-01-04 13:12:26 -08:00
Allen (Yongshuang) Wang a382e59892 Update docs/api/transport.md about transporting JS built-in objects (#176)
* Update docs/api/transport.md about transporting JS built-in objects

* Update transport.md
2018-01-04 09:14:02 -08:00
Allen (Yongshuang) Wang 717095348f parallel quicksort example (#175)
* parallel quicksort example

* update Readme and doc/api/transport.md

* Remove changes in doc/api/transport.md

* Update parallel-quick-sort.js
2018-01-04 09:13:43 -08:00
Darío Hereñú 4e4b6d3d3e Minor fix (proposal) (#171) 2018-01-03 16:01:59 -08:00
Yulong Wang 5e74926738 Fix string encoding in Napa (#153)
The following components are supporting unicode string now.
napa.store APIs
FunctionSpec that used in zone.execute()
Fix: #144
2017-12-28 17:20:28 -08:00
Yulong Wang 46086015e1 Fix test failure in sync-test (#160)
Use a variable to keep the refenence to the store object, in order to prevent it from being destructed by GC
2017-12-28 16:02:51 -08:00
Yulong Wang 2207936df3 [ci skip] Update Napa.js to version 0.1.8 (#172) 2017-12-28 14:45:44 -08:00
Daiyi Peng aa5e979960 Fix module loader crash on package.json that doesn't have 'main' property. (#156)
* Fix module loader crash on package.json without 'main' property

* Fix module loader crash on package.json that does not have main property.

* Revert sync-test change since it's being fixed in another PR.

* Fix a missing bracket on sync-test
2017-12-27 16:33:04 -08:00
Reid Greer 313c8507a2 Fixes Angular typo (#169) 2017-12-27 15:51:26 -08:00
Allen (Yongshuang) Wang 191fe79030 convert transport builtin types test to TypeScript (#168) 2017-12-23 08:49:09 -08:00
Allen (Yongshuang) Wang 1bf7fed967 transport JavaScript standard builtin objects (#151)
* transport-fallback one pager

* refine the design doc

* fix typos

* prototype of v8-transport-helper

* builtin types transporter

* resolve some comments

* Update transport-js-builtins.md

* Update transport-js-builtins.md

* resolve comments

* add NAPA_API for  transportutils methods

* in order to retrieve v8::Value(De)Serilaizer::Delegate symbols correctly, make SerializeValue / DesrializeValue non-static

* Disable rtti for compatibility with node and v8

* make v8-extensions a static lib to use -fno-rtti

* restrict v8-extensions lib building by v8 version

* add -fPIC to build v8-extensions for linux

* include stdlib.h explicitly for malloc/free/realloc

* .cc to .cpp under src/v8-extensions
2017-12-19 20:43:38 -08:00
Yulong Wang 38410ecd99 Fix Node's version to 9.2.1 on CI build (Linux) (#163)
To unblock CI build from https://github.com/Microsoft/napajs/issues/162, I am doing this temporary change.
2017-12-18 15:37:38 -08:00
Yulong Wang 2fbbeac69e fix macro LOG when NAPA_LOG_DISABLED is set (#161) 2017-12-14 19:15:20 -08:00
Yulong Wang cb5099ff0f Add file npm-debug.log to ignore list (#159) 2017-12-14 14:49:47 -08:00
Yulong Wang f76aac2947 Fix build warning: conversion from 'size_t' to 'int', possible loss of data (#145)
Add a static cast to fix the following build warning:
`conversion from 'size_t' to 'int', possible loss of data`
2017-12-08 17:01:44 -08:00
Yulong Wang 0ea99ff8d5 [Feature] Introduce napa.sync.Lock for synchronization handling (#129)
* namespace napa.sync API proposal

* Update md files

* Sync lock implementation

* Use C++ implementation to make sure mutex get release when isolate terminated forcely

* Add optional parameters for passing-through

* Change params from ...rest to optional
2017-12-04 11:01:52 -08:00
Yulong Wang 858f68248b [ci skip] Update Napa.js to version 0.1.7 (#142) 2017-11-28 17:26:28 -08:00
Daiyi Peng 77ec3a03bc Fix hanging promise when callback from Napa to Node (#141) 2017-11-28 16:42:43 -08:00
Yulong Wang cf6f725154 [ci skip] Update Napa.js to version 0.1.6 (#138) 2017-11-22 16:10:35 -08:00
Yulong Wang 3ca7adc46a Revert CI node version for LTS/current to latest (#136) 2017-11-22 15:28:18 -08:00
Yulong Wang 2f411dc2fd Disable incremental marking on Node > 8.4.0 (#134)
* Disable incremental marking on Node >= 8.4.0, instead of throwing exception.

* Use npmlog to output error message

* Add new line
2017-11-22 11:40:55 -08:00
shah-asaduzzaman bc5b927eaa removed additional commas in unordered-set template definition (#135) 2017-11-22 07:02:17 -08:00
Yulong Wang ae500b4ac2 dll::ThisLineLocation(): Remove UNC prefix '\\?\' if it presents (#132)
* dll::ThisLineLocation(): Remove UNC prefix '\\?\' if it presents

* Use filesystem implementation to check UNC prefix
2017-11-21 15:39:01 -08:00
Yulong Wang fd45141c04 [ts] Fix cid decorator for transportable object definition (#133) 2017-11-21 11:42:12 -08:00
Yulong Wang d31c7b125a Add cache for ModuleResolver (#128)
* Add Module resolver cache

* Update path parameter and add unittest for module resolver cache
2017-11-13 11:41:04 -08:00
Yulong Wang 4bcc9ded16 Add the timer timeout resolution to 100ms in unittest (#126) 2017-11-08 23:44:29 -08:00
Yulong Wang bf3672fa0b Throw exception when node version is not supported (#125) 2017-11-08 23:44:12 -08:00
Allen Wang 3bb7c92287 napa embeded support for Linux (#110)
* napa embeded building for linux

* polish building solution and readme.md

* napa runner

* add License

* change dir to napa-runner

* fix comments

* fix comments and add TODOs

* fix typo
2017-11-08 11:14:18 -08:00
Allen Wang 224fa1dfd6 fix exporting shared library funcitons (#122) 2017-11-07 12:23:49 -08:00
Yulong Wang 864ddc7e35 Fix napajs example module (#118)
* Fix file extension for napa example module

* Fix test for example module 'async-number'
2017-11-06 17:22:53 -08:00
Yulong Wang 0533831db2 [ci skip] Update Napa.js to version 0.1.5 (#117) 2017-11-03 15:36:36 -07:00
Allen Wang 83009f4986 add node version checking and prompt (#115)
* Update binding.js

* resolve comments
2017-11-03 13:40:55 -07:00
Yulong Wang 65e123a5ce Update CI matrix for Node.js versions (#111) 2017-11-03 11:39:41 -07:00
Yulong Wang 3fe27f417b Fix build warning: ISO C++ forbids converting a string constant to ‘char*’ (#112) 2017-11-02 23:44:14 -07:00
Yulong Wang 270c507a43 Bugfix: Assertion failed: `workerId < _workers.size()` (#109)
* Bugfix: start worker thread after it put into vector

* Fix build error in unittest

* Make a copy of ZoneSettings in Worker::Impl
2017-11-02 13:54:14 -07:00
Allen Wang 92df949ec4 remove dup license in readme (#108) 2017-11-01 18:13:53 -07:00
siva140191 2327c52ba5 Add license in README and one contribute item (#105) 2017-10-29 19:00:21 -07:00
Jason Butz 8846b988a2 Update Zone API Documentation Grammar (#101) 2017-10-26 10:04:54 -07:00
Daiyi Peng 92643645c5 Add FAQ to README and remove contact list. (#97) 2017-10-23 16:35:37 -07:00
Daiyi Peng 72ef6e91f4 Add license in README and one contribute item (#91) 2017-10-21 23:24:50 -07:00
Facundo 16572df648 Typo in README.md (#88) 2017-10-20 14:40:47 -07:00
Yulong Wang 45e097e64e [ci skip] Update Napa.js to version 0.1.4 (#86) 2017-10-19 16:21:46 -07:00
Yulong Wang 3a93418703 Fix RPATH for shared library (#81)
* Set rpath to '$ORIGIN' to help locate napa shared library

* Set install rpath to "@loader_path" in Mac os
2017-10-19 15:32:57 -07:00
Daiyi Peng 96c3aa41e8 Update zone.md to distinguish from zone in DART (#85)
Add a note in zone API spec to distinguish from the zone concepts in DART, Angular and a proposal to TC39.
2017-10-19 14:10:35 -07:00
ELI JOSEPH BRADLEY 50d8580bc0 Unnest promises in fibonacci example. (#79) 2017-10-19 11:23:32 -07:00
Ivan Fraixedes 1a9e67f43d Fix typo in node API docs (#84) 2017-10-19 10:01:44 -07:00