reopenClass method can not pass attribute named name of it?

I am learning to use reopenClass method when I was introduced to a property called name, but when I run the code when an error occurs, the following error message, but I changed the name of another property, but no problem. I find this method of API, we did not see the instructions. I guess the name is not the method reopenClass reserved keywords?

Error message

ember.debug.js:18772 Uncaught TypeError: Cannot assign to read only property 'name' of function 'function () {
if (!wasApplied) {
  Class.proto(); // prepare prototype...

if (argume...<omitted>... }'

This is my code

<!doctype html>
    <meta charset="utf-8">
    <title>Ember.js • Guides</title> 
  <script src=""></script>
   <script src=""></script>
    <script src=""></script>
	<script type="text/javascript">

	MyObject = Ember.Object.extend({
	  name: 'an object'

	    canBuild: false,
		username: '' 
		//Here a bit strange, do not know why you can not use the name for the 
		// custom property name will prompt this property is self-reading, 
		//using username no problem! !
		,name: 'test'  

	//  Gets static property values
	console.log(MyObject.canBuild); // false
	//  For general property values
	console.log(MyObject.create().get('name'));  // an object


reopenClass method API

I hope you read the description, look forward to your reply. thanks !!

It collides with - JavaScript | MDN

Perhaps a more friendly error explaining this nuance would be better.

Oh,this is the original, thank you for your answer!:slight_smile: