diff --git a/doc/api/repl.md b/doc/api/repl.md index d8b86f9ef6..9e33833c15 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