From 19df5cef3bda0985e17e13c75bd1617009a9605d Mon Sep 17 00:00:00 2001 From: Franziska Hinkelmann Date: Fri, 9 Sep 2016 21:03:25 +0200 Subject: [PATCH] doc: fix example in repl documentation Define the context property r.context.m, not r.m. PR-URL: https://github.com/nodejs/node/pull/8469 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/repl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index d8b86f9ef6a47d..9e33833c15cf7a 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -118,7 +118,7 @@ const repl = require('repl'); var msg = 'message'; const r = repl.start('> '); -Object.defineProperty(r, 'm', { +Object.defineProperty(r.context, 'm', { configurable: false, enumerable: true, value: msg