Permalink
Browse files

doc: fix example in repl documentation

Define the context property r.context.m, not r.m.

PR-URL: #8469
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
fhinkel authored and Fishrock123 committed Sep 9, 2016
1 parent 00f4bc3 commit 19df5cef3bda0985e17e13c75bd1617009a9605d
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/repl.md
View
@@ -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

0 comments on commit 19df5ce

Please sign in to comment.