From 6be8b3a798e60e001542e57555a317846c4858d4 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Sat, 23 Jul 2016 02:22:41 -0700 Subject: [PATCH 1/2] Cautioning use of prototype extensions Based on the last meeting, adding to the README to caution that prototype extensions cannot be reliably used. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 623db9ab3..c9ecc1f7c 100644 --- a/README.md +++ b/README.md @@ -377,6 +377,12 @@ supported when running in FastBoot mode. One exception is network code for fetching models, which we intended to support, but doesn't work at present. +### Prototype extensions + +Prototype extensions do not currently work across node "realms." Fastboot +applications operate in two realms, a normal node environment and a [virtual machine](https://nodejs.org/api/vm.html). Passing objects that originated from the normal realm will not contain the extension methods +inside of the sandbox environment. For this reason, it's encouraged to [disable prototype extensions](https://guides.emberjs.com/v2.3.0/configuring-ember/disabling-prototype-extensions/). + ## Troubleshooting From 7f672c5e989e90fd4d080b8a2399f7291c3197b0 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Tue, 30 Aug 2016 20:31:32 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c9ecc1f7c..e7de97be5 100644 --- a/README.md +++ b/README.md @@ -381,7 +381,7 @@ present. Prototype extensions do not currently work across node "realms." Fastboot applications operate in two realms, a normal node environment and a [virtual machine](https://nodejs.org/api/vm.html). Passing objects that originated from the normal realm will not contain the extension methods -inside of the sandbox environment. For this reason, it's encouraged to [disable prototype extensions](https://guides.emberjs.com/v2.3.0/configuring-ember/disabling-prototype-extensions/). +inside of the sandbox environment. For this reason, it's encouraged to [disable prototype extensions](https://guides.emberjs.com/v2.4.0/configuring-ember/disabling-prototype-extensions/). ## Troubleshooting