Skip to content

Commit a6e8f3f

Browse files
committed
Update STYLEGUIDE.md
As per [sizzles comment](OpenUserJS#262 (comment)) as being unfavorable add in `Promise`s from a previous issue into [Restrictions section](https://github.com/OpenUserJs/OpenUserJS.org/blob/master/STYLEGUIDE.md#restrictions)
1 parent e226101 commit a6e8f3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

STYLEGUIDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ The following **may not** be used:
387387
* `eval()`
388388
* `Function` constructor (it uses `eval()`)
389389
* `with()` *(it can be highly inconsistent)*
390+
* `Promise` *(unpredictable and considered unstable in some browser implementations at this time. Utilize callback structure with some standards of receiving `function optionalName(aArg1, aArg2, ..., aCallback)` and sending `function optionalName(aCallback, aArg1, aArg2, ...)` signatures for use with internal Code styling and async package including possible `aErr` argument parameter)*
390391

391392
Do not pass strings to `setTimeout` or `setInterval`. They use `eval()`. If you're trying to force a server side function to run asynchronously use [`setImmediate`](http://nodejs.org/api/timers.html#timers_setimmediate_callback_arg) *(or [`process.nextTick`](http://nodejs.org/api/process.html#process_process_nexttick_callback) if you really know what you're doing)*.
392393

0 commit comments

Comments
 (0)