Zaid Abdulla
d85afcd2b5
Apply consistent-return lint rule
2018-08-25 03:22:48 -07:00
Zaid Abdulla
e494bdca8a
Introduce ESLint and Prettier
2018-08-24 05:31:22 -07:00
Zaid Abdulla
344f4270f2
Fix infinite loop bug in previous commit
2018-03-28 16:56:49 -07:00
Zaid Abdulla
445b01e895
Prevent redundant extension calls
2018-03-24 00:45:12 -07:00
Zaid Abdulla
bc8619e199
Fix error trying to trim a partial stack trace
2018-03-19 23:17:39 -07:00
Zaid Abdulla
3adee03533
Fix bug where declare returns wrong value
2017-11-21 01:11:44 -08:00
Zaid Abdulla
6a9c62b639
Support time discretization in scripts
...
This can be used to ensure parameter refresh times are aligned (as
opposed to using Date.now() - X). It also allows for possible future
optimizations by exploiting the fact that the value of Date.now(X)
remains static for a given amount of time.
The variance value can be used to shift the discretization threshold
points based on the hash of the device ID for load distribution.
The djb2 hashing algorithm has been replaced with MD5 for better
distribution.
2017-11-10 14:34:24 -08:00
Zaid Abdulla
9cb623c096
Expose random seed function to scripts
2017-08-06 16:56:58 -07:00
Zaid Abdulla
480ae5efd6
Fix crash when script throws non-error object
2017-06-05 17:13:52 -07:00
Zaid Abdulla
00aacd212b
Fix bug in sandbox's Math.random()
2017-03-23 15:59:33 -07:00
Zaid Abdulla
e137645286
Update license headers
2017-03-10 16:04:28 -08:00
Zaid Abdulla
21816ed8ef
Fix duplicate logs from scripts when ext is used
2017-03-07 15:08:23 -08:00
Zaid Abdulla
d06d59e342
Fix regression bug in sandbox
2017-03-02 12:56:25 -08:00
Zaid Abdulla
c435a5e8db
Add logging function for scripts
2017-02-26 15:13:00 -08:00
Zaid Abdulla
d92ca4c2bf
Pass sessionContext to sandbox
2017-02-26 05:34:18 -08:00
Zaid Abdulla
340016813c
Implicit timestamp when declare()ing values
2017-01-30 07:35:48 -08:00
Zaid Abdulla
c940bba4a3
Trim exception stack trace in faults
2017-01-06 12:50:59 -08:00
Zaid Abdulla
12aa43c379
Better implementation for async loop control
2017-01-05 18:22:24 -08:00
Zaid Abdulla
7644d46f6b
Make Math.random() deterministic in provisions
...
Replace Math.random() in sandbox with a seedable implementation so that
the script remains deterministic.
2017-01-01 05:50:43 -08:00
Zaid Abdulla
9f85ead558
Turn errors from scripts and extensions into faults
2016-12-04 19:04:22 -08:00
Zaid Abdulla
f9c5272ce0
A number of fixes in sandbox and declaration processing
2016-11-10 07:07:51 -08:00
Zaid Abdulla
b4bbd8f58c
Simplify declare function in scripts
...
Using declare function is made easier by accept a single path and returning
a promise to read parameter attributes.
2016-11-07 00:29:38 -08:00