Skip to content

Commit

Permalink
doc: fix example in repl documentation
Browse files Browse the repository at this point in the history
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 14, 2016
1 parent 00f4bc3 commit 19df5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19df5ce

Please sign in to comment.